//------------------------------------------------------------------------------ 
//  <copyright file="VideoProperty.h" company="Microsoft Corporation">
// The MIT License (MIT)
// 
// Copyright (c) 2014, Microsoft Corporation
// 
// Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//  </copyright>
//------------------------------------------------------------------------------
#pragma once

#include "Managed.h"

#include "VideoFormats.h"

namespace Microsoft {
    namespace Robotics {
        namespace Vision {
            namespace Cameras {
				namespace Webcam {

    /// <summary>
    /// Video Properties enumeration
    /// </summary>
    public enum class VideoProperty
    {
        /// <summary>
        /// Brightness
        /// </summary>
        Brightness = VideoProcAmp_Brightness,

        /// <summary>
        /// Contrast
        /// </summary>
        Contrast = VideoProcAmp_Contrast,

        /// <summary>
        /// Hue
        /// </summary>
        Hue = VideoProcAmp_Hue,

        /// <summary>
        /// Saturation
        /// </summary>
        Saturation = VideoProcAmp_Saturation,

        /// <summary>
        /// Sharpness
        /// </summary>
        Sharpness = VideoProcAmp_Sharpness,

        /// <summary>
        /// Gamma
        /// </summary>
        Gamma = VideoProcAmp_Gamma,

        /// <summary>
        /// Color Enable
        /// </summary>
        ColorEnable = VideoProcAmp_ColorEnable,

        /// <summary>
        /// While Balance
        /// </summary>
        WhiteBalance = VideoProcAmp_WhiteBalance,

        /// <summary>
        /// Backlight compensation
        /// </summary>
        BacklightCompensation = VideoProcAmp_BacklightCompensation,

        /// <summary>
        /// Gain
        /// </summary>
        Gain = VideoProcAmp_Gain,
    };

    /// <summary>
    /// Video Property flags enumeration
    /// </summary>
    public enum class VideoPropertyFlags
    {
        /// <summary>
        /// Auto settings
        /// </summary>
        Auto = VideoProcAmp_Flags_Auto,

        /// <summary>
        /// Manual settings
        /// </summary>
        Manual = VideoProcAmp_Flags_Manual
    };

    /// <summary>
    /// Video Property Value Structure.
    /// </summary>
    public ref struct VideoPropertyValue
    {
    public:
        /// <summary>
        /// Video Property.
        /// </summary>
        property VideoProperty m_Property;

        /// <summary>
        /// Value of the video property
        /// </summary>
        property int nValue;

        /// <summary>
        /// Minimum of the video property
        /// </summary>
        property int nMinimum;

        /// <summary>
        /// Maximum of the video property
        /// </summary>
        property int nMaximum;

        /// <summary>
        /// Stepping delta of the video property
        /// </summary>
        property int nSteppingDelta;

        /// <summary>
        /// Default value of the video property
        /// </summary>
        property int nDefault;

        /// <summary>
        /// Video property flags
        /// </summary>
        property VideoPropertyFlags m_Flags;
    };
}}}}}
